package com.zhuss.idea.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.idea.idea.DetailIdeaAppendVo;
import com.zhuss.idea.db.dao.gen.IdeaAppendMapper;
import com.zhuss.idea.db.entity.IdeaAppend;

@Mapper
public interface IdeaAppendDao extends IdeaAppendMapper {
	
	void create(IdeaAppend record);
	
	void delete(IdeaAppend record);
	
	DetailIdeaAppendVo getByType(@Param("type") Integer type, @Param("ideaId") Long ideaId, @Param("creatorId") Long creatorId);
	
	List<DetailIdeaAppendVo> listByType(@Param("type") Integer type, @Param("ideaId") Long ideaId, @Param("creatorId") Long creatorId);
	
	List<IdeaAppend> listAll(@Param("area") Integer area);
	
	DetailIdeaAppendVo detail(@Param("ideaAppendId") Long ideaAppendId);
}